package com.lcp.se.controller;

import com.lcp.se.entity.result.Result;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 访问测试
 *
 * @author lcp
 * @date 2020/8/28 9:34
 */
@RestController
public class TestController {
    @Value("${server.port}")
    private String serverPort;

    /**
     * 访问测试路径
     *
     * @return 提示信息
     */
    @RequestMapping("/user/hello")
    public Result<String> hello() {
        return Result.success("hello，this is from se-main，port：" + serverPort);
    }
}
